package com.hackintosh.simple.factory;

/**
 * @description：简单工厂
 * @author：twislyn
 * @date：Created in 2021/05/04
 * @modified By：
 * @version: 1.0
 */
public class SimpleFactory {
    public static Product makeProduct(int kind){
        switch (kind){
            case TypeConst.A:
                return new Phone();
            case TypeConst.B:
                return new Computer();
        }
        return null;
    }
}
